//////////////////////////////////////////////////////////////////////////////////////////////
//	File			:	"SelectFormationState.cpp"
//
//	Author			:	Mike Davis, Matt Stover, James Thornton, Keith Webster
//	
//	Project			:	TacWars
//
//	Last Modified	:	11/6/2013
//
//	Purpose			:	
//
//////////////////////////////////////////////////////////////////////////////////////////////
#include "SelectFormationState.h"
#include "SelectSquadState.h"
#include "../../SGD Wrappers/CSGD_Direct3D.h"
#include "../../SGD Wrappers/CSGD_DirectInput.h"
#include "../../SGD Wrappers/CSGD_TextureManager.h"
#include "../../SGD Wrappers/CSGD_XAudio2.h"
#include "../../SGD Wrappers/CSGD_MessageSystem.h"
#include "../../SGD Wrappers/CSGD_EventSystem.h"
#include "../../SGD Wrappers/SGD_String.h"
#include "../../SGD Wrappers/SGD_Math.h"
#include "../MapSystem/BattleMap.h"
#include "../ParticleSystem/Emitter.h"
#include "../Game.h"
#include "../GameObjects/General.h"
#include "../GameObjects/Knight.h"
#include "../GameObjects/Ranger.h"
#include "../GameObjects/Priest.h"
#include "../GameObjects/Berserker.h"
#include <cassert>
#include "../GameObjects/Player.h"

SelectFormationState* SelectFormationState::GetInstance()
{
	static SelectFormationState Instance;

	return &Instance;
}
SelectFormationState::SelectFormationState()
{
}
SelectFormationState::~SelectFormationState()
{
}
/*virtual*/ void SelectFormationState::Enter()
{
	titleImgID = CSGD_TextureManager::GetInstance()->LoadTexture(_T("resource/Images/MapStage3.png"));

	playerOne = SelectSquadState::GetInstance()->playerOne;
}
/*virtual*/ void SelectFormationState::Exit()
{

}
/*virtual*/ bool SelectFormationState::Input()
{
	return true;
}
/*virtual*/ void SelectFormationState::Update( float fElapsedTime )
{

}
/*virtual*/ void SelectFormationState::Render()
{
	CSGD_TextureManager::GetInstance()->Draw(titleImgID, 0, 0, 1.0f, 1.0f);

	playerOne->RenderAll(playerOne->Squad);
}
